import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../design_specifications.dart';


///用户标签

class ProfileLabel extends StatelessWidget {
  const ProfileLabel({super.key, this.title, required this.content, this.backgroundColor, this.height, this.width});
  final String? title;
  final String content;
  final Color? backgroundColor;
  final double? height;
  final double? width;

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 16.w,
      padding: EdgeInsets.symmetric(horizontal: 8.w),
      decoration: BoxDecoration(
          color: backgroundColor??Colors.orange,
          borderRadius: BorderRadius.circular(20)
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          title==null?Container():Text(title!,style: TextStyle(fontSize: 12.sp,fontFamily: harmony,color: Colors.white),),
          Text(content,style: TextStyle(fontSize: 12.sp,fontFamily: harmony,color: Colors.white),),
        ],
      ),
    );
  }
}
